package com.example.healkepdoctor.model;

import android.os.Parcel;
import android.os.Parcelable;

public class doctorInfo implements Parcelable {
    private String username;
    private int id;
    private String name;
    private int age = -1;
    private int sex;
    private String domain;
    private String profile;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.username);
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeInt(this.age);
        dest.writeInt(this.sex);
        dest.writeString(this.domain);
        dest.writeString(this.profile);
    }

    public void readFromParcel(Parcel source) {
        this.username = source.readString();
        this.id = source.readInt();
        this.name = source.readString();
        this.age = source.readInt();
        this.sex = source.readInt();
        this.domain = source.readString();
        this.profile = source.readString();
    }

    public doctorInfo() {
    }

    protected doctorInfo(Parcel in) {
        this.username = in.readString();
        this.id = in.readInt();
        this.name = in.readString();
        this.age = in.readInt();
        this.sex = in.readInt();
        this.domain = in.readString();
        this.profile = in.readString();
    }

    public static final Creator<doctorInfo> CREATOR = new Creator<doctorInfo>() {
        @Override
        public doctorInfo createFromParcel(Parcel source) {
            return new doctorInfo(source);
        }

        @Override
        public doctorInfo[] newArray(int size) {
            return new doctorInfo[size];
        }
    };
}
